package com.paradogs.gs.db;

import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique;
import com.paradogs.gs.misc.BaseEntity;
import com.paradogs.gs.misc.annotations.CodeAutoGeneratorModule;
import com.paradogs.gs.modules.WorldObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * @author: yumi
 * @date: 2024/10/23  22:55
 * @Description: TODO
 */
@CodeAutoGeneratorModule(value = "world", mgr = false)
@Data
@ProtobufClass
@EqualsAndHashCode(callSuper = true)
@TableName(value = "world_node", autoResultMap = true)
public class WorldNodeDB extends BaseEntity {

    // 所属场景 ID
    @Unique(columns = {"scene_id", "x", "y"})
    @TableField("scene_id")
    private Integer sceneId;

    // X 坐标
    @TableField("x")
    private Integer x;

    // Y 坐标
    @TableField("y")
    private Integer y;

    // 节点名称
    @TableField("name")
    private String name;

    // 描述
    @TableField("description")
    private String description;

    // 是否可以 pk
    @TableField("pk")
    private Boolean pk;

}
